import request from '@/utils/request'

// 查询资产领用明细列表
export function listReceive(query) {
  return request({
    url: '/receive/receive/list',
    method: 'get',
    params: query
  })
}

// 查询资产领用明细详细
export function getReceive(id) {
  return request({
    url: '/receive/receive/' + id,
    method: 'get'
  })
}

// 新增资产领用明细
export function addReceive(data) {
  return request({
    url: '/receive/receive',
    method: 'post',
    data: data
  })
}

// 修改资产领用明细
export function editByReceiveOfReturnData(data) {
  return request({
    url: '/receive/receive/editByReceiveOfReturnData',
    method: 'put',
    data: data
  })
}
// 修改资产领用明细
export function updateReceive(data) {
  return request({
    url: '/receive/receive/',
    method: 'put',
    data: data
  })
}

// 删除资产领用明细
export function delReceive(id) {
  return request({
    url: '/receive/receive/' + id,
    method: 'delete'
  })
}
